package com.micro.school.common.core.config;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

/**
 * 阿里云OSS配置
 */
@Setter
@Getter
@Configuration
@ConfigurationProperties(prefix = "aliyun.oss")
public class OSSConfig {
    
    /**
     * 是否启用OSS
     */
    private boolean enabled = true;
    
    /**
     * 访问域名
     */
    private String endpoint;
    
    /**
     * 地域
     */
    private String region;
    
    /**
     * 存储桶名称
     */
    private String bucketName;
    
    /**
     * Access key ID
     */
    private String accessKeyId;
    
    /**
     * Access key secret
     */
    private String accessKeySecret;
    
    /**
     * 文件前缀
     */
    private String prefix;
    
    /**
     * 文件访问URL前缀
     */
    private String domain;

}